package com.chehejia.devmng.platform.base.constant;

/**
 * @author SongJian
 * Created by SongJian at 2018/5/4.
 */
public enum YN implements BaseEnum<Integer> {
    Y(1, "是"),
    N(0, "否"),
    ;

    private final Integer code;

    private final String message;

    YN(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
